package aooO.crm.Service;


import aooO.crm.pojo.Activity;
import aooO.crm.pojo.FunnelVO;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface ActivityService {

    List<Activity> queryActivityByConditionForPage(HashMap<String,Object> map);

    int selectAllCount(HashMap<String,Object> map);

    int insert(Activity activity);

    int deleteActivityByIds(String[] ids);

    Activity queryActivityById(String id);

    Activity selectActivityDetailById(String id);

    int saveEditActivity(Activity activity);

    List<Activity> selectAllActivities();

    List<Activity> selectActivitiesByIds(String[] id);

    int insertByList(List<Activity> activity);

    List<Activity> selectAllActivityByClueId(String clue_id);

    List<Activity> queryActivityForDetailByNameAndClueId(Map<String,Object> map);

    List<Activity> queryActivityForConvertByNameAndClueId(Map<String,Object> map);

    // 查询对应名字 id 的联系人所关联的市场活动
    List<Activity> queryActivityForDetailByNameAndContactsId(Map<String,Object> map);

    //根据id查
    List<Activity> selectActivityForDetailByContactsId(String contacts_id);

    List<Activity> selectActivityByFuzzyName(String activityName);

    List<FunnelVO> selectCountOfActivityGroupByOwner();
}